<html>
<head><title>Kopfrechner PHP</title></head>
<body>
Loesen sie folgende Aufgabe:
<?php
   $a = rand(1,10);
   $b = rand(1,10);
   $i = 0;
   echo "$a + $b = ?";
   $c = $a+$b;
   echo "$c"
?>
<form action=<?php echo $_SERVER['PHP_SELF'] ?>" method="GET">
Ihre Eingabe:
<input type="text" name ="erg">
<input type="hidden" name = "c" value= <?php $c?>>
<input type="submit" name = "ok" value="ok">
</form>
</body>
</html>
